home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Deutsche Edition 1
/
Deutsche Edition 1.iso
/
amok
/
001-010
/
amok09
/
m2test
/
arraybool.mod
< prev
next >
Wrap
Text File
|
1993-11-04
|
746b
|
27 lines
(* :Program. ARRAYBOOL
:Autor. Fridtjof Siebert
:Contents. Demoprogramm für Fehler bei ARRAY BOOLEAN OF.
*)
MODULE ARRAYBOOL;
FROM InOut IMPORT WriteString, WriteLn, WriteInt;
VAR
test: ARRAY BOOLEAN OF INTEGER;
t: BOOLEAN;
BEGIN
WriteString("test[TRUE] := 1;");
test[TRUE] := 1;
WriteString(" done."); WriteLn;
WriteString("test[FALSE] := 2;");
test[FALSE] := 2;
WriteString(" done."); WriteLn;
WriteString("test[TRUE] = "); WriteInt(test[TRUE],10); WriteLn;
WriteString("test[FALSE] = "); WriteInt(test[FALSE],10); WriteLn;
t := FALSE; WriteString("t := FALSE; test[t] = "); WriteInt(test[t],10); WriteLn;
t := TRUE; WriteString("t := TRUE; test[t] = "); WriteInt(test[t],10); WriteLn;
END ARRAYBOOL.